package com.xuecheng.content.feignclient;

import com.xuecheng.content.config.MultipartSupportConfig;
import com.xuecheng.content.model.dto.TeachplanDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author 陈竞超
 * @version 1.0
 * @qq 2250537249
 */
@FeignClient(value = "teach-api",configuration = MultipartSupportConfig.class)
public interface TeachPlanServiceClient {
    @GetMapping("teachplan/{courseId}/tree-nodes")
    public List<TeachplanDto> getTreeNodes(@PathVariable(value = "courseId") Long courseId);
}
